class Queue:
    def __init__(self):
        self.__queue = []

    def add(self, obj):
        assert isinstance(obj, dict)
        assert obj.has_key('cmd')
        assert obj.has_key('args')
        self.__queue.append(obj)

    def pop(self):
        return self.__queue.pop()

    def getList(self):
        return self.__queue
